﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace VirtualTournaments.DesktopMatchViewer
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            XmlDocument document = new XmlDocument();
            document.Load(@"C:\prueba.xml");

            foreach (XmlNode node in document.DocumentElement.SelectNodes("Jugador"))
            {
                this.listBox1.Items.Add(node.SelectSingleNode("Nombre").InnerText + " " + node.SelectSingleNode("Apellido").InnerText);
                
            }

        }
    }
}
